package cn.springboot.chapter05mybaits.mapper;

import cn.springboot.chapter05mybaits.beans.Book;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
@Mapper
public interface BookMapper {
    int addBook(Book book);

    int deleteBookById(Integer id);

    int updateBook(Book book);

    Book getBookById(Integer id);

    List<Book> getAllBooks();
}
